package com.jkm.service.impl;

import com.jkm.service.TestUserAgainService;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 四声草
 * @create 2018-07-26 20:15
 **/
@RestController
@CacheConfig(cacheNames = "liao")
public class TestUserAgainServiceImpl implements TestUserAgainService {

    @Override
    @Cacheable(value = "kaocheng",key = "'get02'")
    public String get() {
        System.out.println("=================调用到了service层==================");
        return "SUCCESS";
    }
}
